EXTEND: Let's change our spinner experiment even more and examine the results!

  1. Change the value of the num_experiments variable to 40.
  2. Add more colors to sample_space and change the theoretical probability for the new colors you added!
  3. Find my_display.set_y(-175)¬ and change the value in parentheses from -175 to -100.
  4. Add outcome_display.hide() to the bottom of your program to make room for a larger table.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)